Skip to content

Conversation

khyperia
Copy link
Contributor

This was a mistake in #77614

It's not a huge deal, because backends can always implement this with interior mutability, but it's nice to avoid interior mutability when possible. For context, the set_source_location method, called alongside set_span, also takes &mut self.

r? @eddyb

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 17, 2020
@camelid camelid added C-cleanup Category: PRs that clean code up or issues documenting cleanup. A-codegen Area: Code generation labels Oct 17, 2020
@jyn514 jyn514 added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Oct 18, 2020
@jyn514
Copy link
Member

jyn514 commented Oct 18, 2020

@bors delegate=bjorn3

@bors
Copy link
Collaborator

bors commented Oct 18, 2020

✌️ @bjorn3 can now approve this pull request

@bjorn3
Copy link
Member

bjorn3 commented Oct 18, 2020

Makes sense

@bors r+

@bors
Copy link
Collaborator

bors commented Oct 18, 2020

📌 Commit 3d48448 has been approved by bjorn3

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 18, 2020
@bors
Copy link
Collaborator

bors commented Oct 18, 2020

⌛ Testing commit 3d48448 with merge 94332bb...

@bors
Copy link
Collaborator

bors commented Oct 18, 2020

☀️ Test successful - checks-actions, checks-azure
Approved by: bjorn3
Pushing 94332bb to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Oct 18, 2020
@bors bors merged commit 94332bb into rust-lang:master Oct 18, 2020
@rustbot rustbot added this to the 1.49.0 milestone Oct 18, 2020
@khyperia khyperia deleted the set_span_mut branch October 18, 2020 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-codegen Area: Code generation C-cleanup Category: PRs that clean code up or issues documenting cleanup. merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants